//排行榜
//等级排行榜
//战力排行榜
"use strict";
const mvc = require("cosjs.mvc");


//更新等级榜
exports.updateLv = function (uid, lv) {
    return
    let redis = mvc.model.redis("sort", this.sid, 'lvSort');
    redis.stamp();
    return redis.set(uid, lv);
}

//更新战力榜
exports.updateFight = function (uid, fight) {
    return
    let redis = mvc.model.redis("sort", this.sid, 'fightSort');
    redis.stamp();
    return redis.set(uid, fight);
}

//更新主线榜
exports.updateStage = function (uid, stage) {
    return
    let redis = mvc.model.redis("sort", this.sid, 'stageSort');
    redis.stamp();
    return redis.set(uid, stage);
}

//更新3V3
exports.update3V3 = function (uid, score) {
    let redis = mvc.model.redis("sort", this.sid, 'PvP_3V3_Sort');
    redis.stamp();
    return redis.incr(uid, score);
}

//重置3V3
exports.reset3V3 = function (uid) {
    let redis = mvc.model.redis("sort", this.sid, 'PvP_3V3_Sort');
    redis.stamp();
    return redis.set(uid, 0);
}